import { defineStore } from "pinia";
import { computed, ref } from "vue";
export const counter = defineStore("counter",()=>{
    const count = ref(0)
    function add(){
        count.value++
    }
    const num = computed(()=>{return 2*count.value})
    return {
        count,
        num,
        add,
    }
})